home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Libraries / VideoToolbox 96.06.15 / VideoToolboxSources / Exponential.c < prev    next >
Text File  |  1995-07-19  |  283b  |  13 lines

  1. /* Exponential.c 
  2. Routines related to the exponential probability distribution.
  3. Also see: Binomial.c, ChiSquare.c, Normal.c, Uniform.c
  4. */
  5. double ExponentialPdf(double x);
  6.  
  7. double ExponentialPdf(double x)
  8. /* Mean and variance are 1. */
  9. {
  10.     if(x<0.0)return 0.0;
  11.     else return exp(-x);
  12. }
  13.